
keys = ['a', 'w', 'd', 's', 'a']
counts = [5, 4, 3, 2, 1]

for char, times in zip(keys, counts):
    print(f'{char}\n' * times, end='')


#  python 2.py   